package com.ruoyi.goods.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * #订单详情信息对象 bm_inordergoodslist
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BmInordergoodslist extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情id */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 规格id */
    @Excel(name = "规格id")
    private Long specificationId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specificationName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsImg;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long buyNum;

    /** 购买金额 */
    @Excel(name = "购买金额")
    private BigDecimal price;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("goodsId", getGoodsId())
            .append("specificationId", getSpecificationId())
            .append("specificationName", getSpecificationName())
            .append("goodsName", getGoodsName())
            .append("goodsImg", getGoodsImg())
            .append("buyNum", getBuyNum())
            .append("price", getPrice())
            .toString();
    }
}
